// 
// timeline.scss
//

/************** Horizontal timeline **************/ 


.hori-timeline{
    .events{
        .event-list{
            text-align: center;
            display: block;

            .event-down-icon{
                position: relative;
                &::before{
                    content: "";
                    position: absolute;
                    width: 100%;
                    top: 16px;
                    left: 0;
                    right: 0;
                    border-bottom: 3px dashed var(--#{$prefix}border-color);
                }
                .down-arrow-icon{
                    position: relative;
                    background-color: var(--#{$prefix}secondary-bg);
                    padding: 4px;
                }
            }

            &:hover{
                .down-arrow-icon{
                    animation: fade-down 1.5s infinite linear;
                }
            }

            &.active{
                .down-arrow-icon{
                    animation: fade-down 1.5s infinite linear;
                    &:before {
                        content: "\ec4c";
                    }
                }
            }
        }
    }
}


/************** vertical timeline **************/ 

.verti-timeline{
    border-left: 3px dashed var(--#{$prefix}border-color);
    margin: 0 10px;
    .event-list{
        position: relative;
        padding: 0px 0px 30px 20px;

        .event-timeline-dot{
            position: absolute;
            left: -9px;
            top: 0px;
            z-index: 9;
            font-size: 16px;
        }
        .event-content{
            position: relative;
            border: 2px solid var(--#{$prefix}border-color);
            border-radius: 7px;
        }

        &.active{
            .event-timeline-dot{
                color: $primary;
            }
        }

        &:last-child{
            padding-bottom: 0px;
        }
    }
}